{include file="inc/upload-config.html"}
<div class="user-r-title clearfix">
    <div class="common-title f-l">
        <span class="field">创建主播</sapn>
    </div>
</div>
<div class="user-r-content clearfix">
    <div ms-important="vm-create">
        <form class="form-horizontal">
        <div class="form-group clearfix">
            <label class="col-sm-2 control-label open-close" for="bm_special">主播类型</label>
            <div class="col-sm-10">
                <label class="radio-inline">
                    <input type="radio" name="bm_special" ms-duplex="@form_data.bm_special" value="0">普通主播
                </label>
                <label class="radio-inline" {if $data.left_sign_anchor eq 0}style="color:#999;"{/if}>
                    <input type="radio" name="bm_special" ms-duplex="@form_data.bm_special" value="1" {if $data.left_sign_anchor eq 0}disabled="disabled"{/if}>签约主播&nbsp;<span style="font-size: 13px; color: #666;">(剩余<span style="color:red;">{$data.left_sign_anchor}</span>个名额)</span>
                </label>
            </div>
        </div>
        <div class="form-group clearfix">
            <label class="col-sm-2 control-label" for="nickname">主播昵称</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" ms-duplex="@form_data.nick_name" placeholder="请输入主播昵称">
            </div>
        </div>
        <div class="form-group clearfix">
            <label class="col-sm-2 control-label" for="nickname">主播认证类型</label>
            <div class="col-sm-10">
                <select class="form-control" ms-duplex="@form_data.authentication_type">
                    {foreach from="$data.authent_list" item="authent" }
                    <option value="{$authent.name}">{$authent.name}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="form-group clearfix">
            <label class="col-sm-2 control-label" for="ID_photo">主播头像</label>
            <div class="col-sm-10">
                <div class="star_submit clearfix" style="width: 100%">
                    <div class="field_input file-idcard">
                        <div class="upload_pic">
                            <div class="plus_icon"></div>
                            <div class="plus_text">主播头像</div>
                            <div class="plus_subhead">小于5M</div>
                        </div>
                        <div class="pic_container">
                            <img id="head_image-image" src="" width="160" height="160">
                        </div>
                        <div class="uploadimg_poster" id="head_image">
                            <input type="hidden" value="" name="head_image" id="head_image-url" ms-duplex="@form_data.head_image">
                            <input type="file" id="head_image_file" name="img">
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group clearfix">
            <label class="col-sm-2 control-label" for="mobile">手机号</label>
            <div class="col-sm-10">
                <input type="number" class="form-control" ms-duplex="@form_data.mobile" placeholder="请输入手机号">
            </div>
        </div>
        <div class="form-group clearfix">
            <label class="col-sm-2 control-label" for="nickname">所属地区</label>
            <div class="col-sm-10">
                <div class="aui-list-item-inner" id="distpicker" data-toggle="distpicker">
                    <div class="aui-col-xs-5 f-l">
                        <select class="form-control mr-10" id="province" ms-duplex="@form_data.province" style="width:150px;"></select>
                    </div>
                    <div class="aui-col-xs-7 f-l">
                        <select class="form-control" id="city" ms-duplex="@form_data.city" style="width:150px;"></select>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group clearfix">
            <label class="col-sm-2 control-label open-close" for="sex">性别</label>
            <div class="col-sm-10">
                <label class="radio-inline">
                    <input type="radio" name="sex" ms-duplex="@form_data.sex" value="1"> 男
                </label>
                <label class="radio-inline">
                    <input type="radio" name="sex" ms-duplex="@form_data.sex" value="2"> 女
                </label>
            </div>
        </div>
        <div class="form-group clearfix">
            <label class="col-sm-2 control-label" for="realname">真实姓名</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" ms-duplex="@form_data.realname" placeholder="请输入真实姓名">
            </div>
        </div>
        <div class="form-group clearfix">
            <label class="col-sm-2 control-label" for="identify_number">身份证号码</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" ms-duplex="@form_data.identify_number" placeholder="请输入身份证号码">
            </div>
        </div>
        <div class="form-group clearfix">
            <label class="col-sm-2 control-label" for="ID_photo">身份证照片</label>
            <div class="col-sm-10">
                <div class="star_submit clearfix" style="width: 100%">
                    <div class="field_input file-idcard">
                        <div class="upload_pic">
                            <div class="plus_icon"></div>
                            <div class="plus_text">身份证正面</div>
                            <div class="plus_subhead">小于5M</div>
                        </div>
                        <div class="pic_container">
                            <img id="identify_positive-image" src="" width="160" height="160">
                        </div>
                        <div class="uploadimg_poster" id="identify_positive">
                            <input type="hidden" value="" name="frontpicture" id="identify_positive-url" ms-duplex="@form_data.identify_positive_image">
                            <input type="file" id="frontpicture_file" name="img">
                        </div>
                    </div>
                    <div class="field_input file-idcard">
                        <div class="upload_pic">
                            <div class="plus_icon"></div>
                            <div class="plus_text">身份证反面</div>
                            <div class="plus_subhead">小于5M</div>
                        </div>
                        <div class="pic_container">
                            <img id="identify_nagative-image" src="" width="160" height="160">
                        </div>
                        <div class="uploadimg_poster" id="identify_nagative">
                            <input type="hidden" value="" name="backpicture" id="identify_nagative-url" ms-duplex="@form_data.identify_nagative_image">
                            <input type="file" id="backpicture_file" name="img">
                        </div>
                    </div>
                    <div class="field_input file-idcard">
                        <div class="upload_pic">
                            <div class="plus_icon"></div>
                            <div class="plus_text">手持身份证</div>
                            <div class="plus_subhead">小于5M</div>
                        </div>
                        <div class="pic_container">
                            <img id="identify_hold-image" src="" width="160" height="160">
                        </div>
                        <div class="uploadimg_poster" id="identify_hold">
                            <input type="hidden" value="" name="pictureinhand" id="identify_hold-url" ms-duplex="@form_data.identify_hold_image">
                            <input type="file" id="pictureinhand_file" name="img">
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group clearfix">
            <div class="col-sm-offset-2 col-sm-10">
                <a href="javascript:void(0)" class="btn btn-primary" ms-click="submit">保存</a>
            </div>
        </div>
        </form>
    </div>
</div>
